package temp;

import com.google.common.base.Joiner;

public class 提取汉字 {

    public static void main(String[] args) {

        //    String s = "";
//        String replace = s.replaceAll("[^\\u4e00-\\u9fa5\n、]", "");
        //      System.out.println(replace);

        String s =
                "农、林、牧、渔业\n" +
                        "采矿业\n" +
                        "制造业\n" +
                        "电力、热力、燃气及水的生产和供应业\n" +
                        "环境和公共设施管理业\n" +
                        "建筑业\n" +
                        "交通运输、仓储业和邮政业\n" +
                        "信息传输、计算机服务和软件业\n" +
                        "批发和零售业\n" +
                        "住宿、餐饮业\n" +
                        "金融、保险业\n" +
                        "房地产业\n" +
                        "租赁和商务服务业\n" +
                        "科学研究、技术服务和地质勘查业\n" +
                        "水利、环境和公共设施管理业\n" +
                        "居民服务和其他服务业十七、教育\n" +
                        "卫生、社会保障和社会服务业\n" +
                        "文化、体育、娱乐业\n" +
                        "综合含投资类、主业不明显\n" +
                        "其它";

        String[] split = s.split("\n");

        StringBuilder builder = new StringBuilder();

        for (int i = 0; i < split.length; i++) {
            split[i] = "\"" + split[i] + "\"";
        }

        String join = Joiner.on(",").join(split);

        System.out.println(join);


    }

}
